<template>
	<!-- 使用教程 -->
	<view id="help">
		<uni-collapse>
			<uni-collapse-item :title="item.title" v-for="(item,index) in help_doc">
				<text>{{item.content}}</text>
			</uni-collapse-item>
		</uni-collapse>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				help_doc:[]
			}
		},
		onLoad() {
			this.get_help_doc()
		},
		methods: {
			// 获取帮助文档
			get_help_doc(){
				let self=this
				this.$u.api.get_help_doc()
				.then(res=>{
					if(res.code==200){
						self.help_doc=res.data
					}
				})
			}
		}
	}
</script>

<style lang="scss">
	#help {
		padding-bottom: 50rpx;
		text {
			color: #505050;
		}
		/deep/.uni-collapse-item__wrap {
			padding: 0 30rpx;
		}
	}
</style>
